package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.model.common.business.pojo.BusinessGood;
import com.zhentao.model.common.business.pojo.BusinessGoodType;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.BusinessGoodService;
import com.zhentao.mapper.BusinessGoodMapper;
import org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapProperties;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.Wrapper;
import java.util.List;
import java.util.Queue;

/**
* @author 贾晓婷
* @description 针对表【business_good】的数据库操作Service实现
* @createDate 2024-09-14 20:12:22
*/
@Service
public class BusinessGoodServiceImpl extends ServiceImpl<BusinessGoodMapper, BusinessGood>
    implements BusinessGoodService{
    @Resource
    BusinessGoodMapper businessGoodMapper;

    @Override
    public ResponseResult listGood() {
        List<BusinessGood> businessGoods = businessGoodMapper.selectList(null);
        return ResponseResult.okResult(businessGoods);
    }

    @Override
    public ResponseResult addGood(BusinessGood businessGood) {
        String goodName = businessGood.getGoodName();
        String goodDescription = businessGood.getGoodDescription();
        System.out.println("未写完");
        return ResponseResult.okResult("1111111111111");
    }



}